package com.zzxx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

//存储优惠券和用户间的信息
public class UserCouponInfo {
	private User user;
	private List<Coupon> coupons = new ArrayList<>();
	private List<UserCoupon> userCoupons = new ArrayList<>();
	//到期时间
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private List<Date> lastTimes = new ArrayList<>();

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public List<Coupon> getCoupons() {
		return coupons;
	}

	public void setCoupons(List<Coupon> coupons) {
		this.coupons = coupons;
	}

	public List<UserCoupon> getUserCoupons() {
		return userCoupons;
	}

	public void setUserCoupons(List<UserCoupon> userCoupons) {
		this.userCoupons = userCoupons;
	}

	public List<Date> getLastTimes() {
		return lastTimes;
	}

	public void setLastTimes(List<Date> lastTimes) {
		this.lastTimes = lastTimes;
	}
}
